//
//  MoreViewController.m
//  Weibo
//
//  Created by taoshanchang on 15/1/21.
//  Copyright (c) 2015年 taoshanchang. All rights reserved.
//

#import "MoreViewController.h"
#import "ThemeViewController.h"
#import "BrowModelController.h"

@interface MoreViewController ()

@end

@implementation MoreViewController

-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    
    if(self){
        self.title = @"更多";
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
}
#pragma - mark tableViewDelegate

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
    return 2;
    
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
    UITableViewCell *cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
    if(indexPath.row == 0){
        cell.textLabel.text = @"主题";
    }else if(indexPath.row == 1){
        cell.textLabel.text = @"图片加载模式";
    }
    return cell;
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    if(indexPath.row == 0){
        ThemeViewController *themeViewController = [[ThemeViewController alloc ] init];
        [self.navigationController pushViewController:themeViewController animated:YES];
    }else if(indexPath.row == 1){
        BrowModelController *browModelController = [[BrowModelController alloc] init];
        [self.navigationController pushViewController:browModelController animated:YES];
    }
}


@end
